package comxin.innerclass;

public class Outer {
    public String name1="外部类";
    public class Inner{
       public String name2="内部类";
       public void innerMethod(){
           System.out.println(name1);
       }
    }
    public void outerMethod(){
        Inner inner = new Inner();
        System.out.println(inner.name2);
        inner.innerMethod();
    }
}
